package com.nju.edu.erp.model.po.promotion;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PromotionOnePO {
    //一个稀疏表，用于与数据库交互
    //type1. 总经理可以针对不同级别（customerLevel）的用户制定促销策略（价格折让discount、赠送代金劵voucherAmount）
    private Integer strategyId;
    private Integer customerLevel;
    private BigDecimal discount;
    private BigDecimal voucherAmount;
}
/*
    以下为可能的输入示例
    promotion_sheet_one:
    strategy-id | customer-level | discount | voucher_amount
    1           | 3             | 0.99     | 1000
    2           | 4             | 0.98     | 5000
*/